import { defineStore } from "pinia";
import { ref } from "vue";
const usePdcStore = defineStore("pdcStore", () => {
  const pdc = ref<PDC>({
    province:'',
    city:'',
    district:''
  });
  const isPdc = ref<boolean>(false);
  const pcdId = ref({
    p: "",
    c: "",
    d: "",
  });
  const setPdcInfo = (item: PDC) => {
    pdc.value = {
      ...item,
    };
  };
  return { pdc, isPdc, setPdcInfo, pcdId };
});
export default usePdcStore;
